package com.hj.demo;

import com.hj.domain.Cat;
import com.hj.domain.Dog;

public class Test4 {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.setColor("花色");
        cat.setBreed("波斯猫");
        Dog dog = new Dog();
        dog.setColor("黑色");
        dog.setBreed("藏獒");
        cat.eat();
        cat.catchMouse();
        dog.eat();
        dog.lookHome();
    }
}
